import type { GeneralConfig } from '@/types/api'

interface FetchGeneralConfigAPIResData {
  code: number
  msg: string
  time: string
  data: GeneralConfig
}

export function fetchGeneralConfigAPI() {
  return httpInstance.get<FetchGeneralConfigAPIResData>(
    '/api/index/index?type=1',
  )
}
